package com.ruoyi.web.ydz.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.List;

/**
 * 其他新闻对象 other_news
 * 
 * @author Drx
 * @date 2025-08-14
 */
public class OtherNews extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 文章标题 */
    @Excel(name = "文章标题")
    private String name;

    /** 文章内容 */
    //@Excel(name = "文章内容")
    private String content;

    /** 类型 01疾病知识 02疾病指南 */
    @Excel(name = "类型", readConverterExp = "01=疾病知识,02=疾病指南")
    private String type;

    /** 状态 0 未发布 1 已发布 */
    @Excel(name = "类型", readConverterExp = "0=未发布,1=已发布")
    private String state;

    /** 1/头条  2、置顶  3、推荐、4特推 */
    @Excel(name = "标签", readConverterExp = "1=头条,2=置顶,3=推荐,4=特推")
    private String label;

    /** 浏览量 */
    @Excel(name = "浏览量")
    private Long hits;

    /** 关键词 */
    @Excel(name = "关键词")
    private String keyword;

    /** 参考资料 */
    @Excel(name = "参考资料")
    private String referenceMaterial;

    /** 免责声明 */
    @Excel(name = "免责声明")
    private String disclaimers;

    /** 创建人名称 */
    @Excel(name = "创建人名称")
    private String createName;

    /** 更新人名称 */
    @Excel(name = "更新人名称")
    private String updateName;

    /** 是否删除（0否；1是） */
    private String delFlag;

    /** 疾病关联集合 */
    private List<OtherNewsDisease> otherNewsDiseaseList;

    /** 疾病删除数组 */
    private Long[] delOtherNewsDiseaseIds;


    /** 疾病id 查询用 */
    private String diseaseId;

    /** 科目Pid 查询用 */
    private String pid;

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public String getDiseaseId() {
        return diseaseId;
    }

    public void setDiseaseId(String diseaseId) {
        this.diseaseId = diseaseId;
    }

    public Long[] getDelOtherNewsDiseaseIds() {
        return delOtherNewsDiseaseIds;
    }

    public void setDelOtherNewsDiseaseIds(Long[] delOtherNewsDiseaseIds) {
        this.delOtherNewsDiseaseIds = delOtherNewsDiseaseIds;
    }

    public List<OtherNewsDisease> getOtherNewsDiseaseList() {
        return otherNewsDiseaseList;
    }

    public void setOtherNewsDiseaseList(List<OtherNewsDisease> otherNewsDiseaseList) {
        this.otherNewsDiseaseList = otherNewsDiseaseList;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setState(String state) 
    {
        this.state = state;
    }

    public String getState() 
    {
        return state;
    }
    public void setLabel(String label) 
    {
        this.label = label;
    }

    public String getLabel() 
    {
        return label;
    }
    public void setHits(Long hits) 
    {
        this.hits = hits;
    }

    public Long getHits() 
    {
        return hits;
    }
    public void setKeyword(String keyword) 
    {
        this.keyword = keyword;
    }

    public String getKeyword() 
    {
        return keyword;
    }
    public void setReferenceMaterial(String referenceMaterial) 
    {
        this.referenceMaterial = referenceMaterial;
    }

    public String getReferenceMaterial() 
    {
        return referenceMaterial;
    }
    public void setDisclaimers(String disclaimers) 
    {
        this.disclaimers = disclaimers;
    }

    public String getDisclaimers() 
    {
        return disclaimers;
    }
    public void setCreateName(String createName) 
    {
        this.createName = createName;
    }

    public String getCreateName() 
    {
        return createName;
    }
    public void setUpdateName(String updateName) 
    {
        this.updateName = updateName;
    }

    public String getUpdateName() 
    {
        return updateName;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("content", getContent())
            .append("remark", getRemark())
            .append("type", getType())
            .append("state", getState())
            .append("label", getLabel())
            .append("hits", getHits())
            .append("keyword", getKeyword())
            .append("referenceMaterial", getReferenceMaterial())
            .append("disclaimers", getDisclaimers())
            .append("createBy", getCreateBy())
            .append("createName", getCreateName())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateName", getUpdateName())
            .append("updateTime", getUpdateTime())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
